package cn.kwq.project_manger.pojo;

import cn.kwq.project_manger.pojo.Auditable.Auditable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity //作为hibernate
@Table(name = "Tag")
@Builder
public class Tag extends Auditable<Long> {
    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)//id自增
    @Column(name = "tag_id")
    private Long tagId;

    /**
     * 标签类型
     * 地点标签0（项目）
     * 其他标签1（组队）
     */
    private Integer tagType;

    private String tagName;


}
